<%@ include file="/common/taglibs.jsp"%>
<script type="text/javascript" src="<c:url value='/js/util.js'/>"></script>
<link href="<c:url value='/css/tablesorter.css' />" rel="stylesheet" type="text/css"/>
<link href="<c:url value='/css/dhtmlxcombo.css' />" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
	$(document).ready(function() {
		$('#editKnowledgeManagementForm input, #editKnowledgeManagementForm select').keypress(function(e) {
      		if(e.which == 13) {      
            	jQuery('#loginFormSubmit').click();
            	return false;
       		}
   		});
		
		$('#pageTitle').text('<spring:message code="findKnowledgeManagement.heading" />');
		
		$("#reset").click(function(){
			$(this).bind("ajaxSend", function(){
                $('#loading').remove();
				$(this).after("<img  id='loading' src='<c:url value='/images/ajax-loader.gif'/>' alt='loading' />");

			 }).bind("ajaxComplete", function(){

				$('#loading').remove();

		 	});
			$("#content").load("../secure/findKnowledgeManagement.do");
		});

		$.validator.addMethod("startDateValidation", function(value, element) {
			//var initialProjectStartDate = parseDateString($('#initialProjectStartDate').val());
			//var finalProjectStartDate = parseDateString($('#finalProjectStartDate').val());
			/*if ($.trim($('#initialProjectStartDate').val()) != "" && initialProjectStartDate == null) {
				return false;
			} else if ($.trim($('#finalProjectStartDate').val()) != "" && finalProjectStartDate == null) {
				return false;
			} else if ($.trim($('#initialProjectStartDate').val()) != "" && $.trim($('#finalProjectStartDate').val()) != "") {
				if (initialProjectStartDate != null && finalProjectStartDate != null) {
					if (initialProjectStartDate.getTime() > finalProjectStartDate.getTime()) {
						return false;
					}
				} else {
					return false;
				}
			}*/
			//if ($.trim($('#initialProjectStartDate').val()) != "")
			//	$("#initialProjectStartDate").val($.format.date(initialProjectStartDate, "MM/dd/yyyy"));
			//if ($.trim($('#finalProjectStartDate').val()) != "")
			//	$("#finalProjectStartDate").val($.format.date(finalProjectStartDate, "MM/dd/yyyy"));
			if ($.trim($('#initialProjectStartDateString').val()) != "") {
				if ($.trim($('#finalProjectStartDateString').val()) != "") {
					var initialProjectStartDate = parseDateString($('#initialProjectStartDateString').val());
					var finalProjectStartDate = parseDateString($('#finalProjectStartDateString').val());
					if (initialProjectStartDate != null && finalProjectStartDate != null) {
						if (initialProjectStartDate.getTime() > finalProjectStartDate.getTime()) {
							return false;
						}
					} else {
						return false;
					}
					$("#initialProjectStartDateString").val($.format.date(initialProjectStartDate, "MM/dd/yyyy"));
					$("#finalProjectStartDateString").val($.format.date(finalProjectStartDate, "MM/dd/yyyy"));
				} else {
					var initialProjectStartDateString = validateMonthDayString($('#initialProjectStartDateString').val());
					if (initialProjectStartDateString == null) {
						var initialProjectStartDate = parseDateString($('#initialProjectStartDateString').val());
						$("#initialProjectStartDateString").val($.format.date(initialProjectStartDate, "MM/dd/yyyy"));
						if (initialProjectStartDate == null) {
							return false;
						}
						$("#initialProjectStartDateString").val($.format.date(initialProjectStartDate, "MM/dd/yyyy"));
					} else {
						$("#initialProjectStartDateString").val(initialProjectStartDateString);
					}
				}
			} else {
				if ($.trim($('#finalProjectStartDateString').val()) != "") {
					var finalProjectStartDate = parseDateString($('#finalProjectStartDateString').val());
					if (finalProjectStartDate == null) {
						return false;
					}
					$("#finalProjectStartDateString").val($.format.date(finalProjectStartDate, "MM/dd/yyyy"));
				}
			}
			//var initialProjectStartDate = new Date($('#initialProjectStartDate').val()).getTime();
			//var finalProjectStartDate = new Date($('#finalProjectStartDate').val()).getTime();
			/*if (isNaN(initialProjectStartDate)) {
				return false;
			} else if (isNaN(finalProjectStartDate)) {
				return false;
			} else if (initialProjectStartDate > finalProjectStartDate) {
				return false;

			}*/
			return true;
		},  "Please enter Project Start Date valid value or range."
		);
		
		$.validator.addMethod("endDateValidation", function(value, element) {
			//var initialProjectEndDate = parseDateString($('#initialProjectEndDate').val());
			//var finalProjectEndDate = parseDateString($('#finalProjectEndDate').val());
			/*if ($.trim($('#initialProjectEndDate').val()) != "" && initialProjectEndDate == null) {
				return false;
			} else if ($.trim($('#finalProjectEndDate').val()) != "" && finalProjectEndDate == null) {
				return false;
			} else if ($.trim($('#initialProjectEndDate').val()) != "" && $.trim($('#finalProjectEndDate').val()) != "") {
				if (initialProjectEndDate != null && finalProjectEndDate != null) {
					if (initialProjectEndDate.getTime() > finalProjectEndDate.getTime()) {
						return false;
					}
				} else {
					return false;
				}
			}*/
			//if ($.trim($('#initialProjectEndDate').val()) != "")
			//	$("#initialProjectEndDate").val($.format.date(initialProjectEndDate, "MM/dd/yyyy"));
			//if ($.trim($('#finalProjectEndDate').val()) != "")
			//	$("#finalProjectEndDate").val($.format.date(finalProjectEndDate, "MM/dd/yyyy"));
			if ($.trim($('#initialProjectEndDateString').val()) != "") {
				if ($.trim($('#finalProjectEndDateString').val()) != "") {
					var initialProjectEndDate = parseDateString($('#initialProjectEndDateString').val());
					var finalProjectEndDate = parseDateString($('#finalProjectEndDateString').val());
					if (initialProjectEndDate != null && finalProjectEndDate != null) {
						if (initialProjectEndDate.getTime() > finalProjectEndDate.getTime()) {
							return false;
						}
					} else {
						return false;
					}
					$("#initialProjectEndDateString").val($.format.date(initialProjectEndDate, "MM/dd/yyyy"));
					$("#finalProjectEndDateString").val($.format.date(finalProjectEndDate, "MM/dd/yyyy"));
				} else {
					var initialProjectStartDateString = validateMonthDayString($('#initialProjectEndDateString').val());
					if (initialProjectEndDateString == null) {
						var initialProjectEndDate = parseDateString($('#initialProjectEndDateString').val());
						$("#initialProjectEndDateString").val($.format.date(initialProjectEndDate, "MM/dd/yyyy"));
						if (initialProjectEndDate == null) {
							return false;
						}
						$("#initialProjectEndDateString").val($.format.date(initialProjectEndDate, "MM/dd/yyyy"));
					} else {
						$("#initialProjectEndDateString").val(initialProjectStartDateString);
					}
				}
			} else {
				if ($.trim($('#finalProjectEndDateString').val()) != "") {
					var finalProjectEndDate = parseDateString($('#finalProjectEndDateString').val());
					if (finalProjectEndDate == null) {
						return false;
					}
					$("#finalProjectEndDateString").val($.format.date(finalProjectEndDate, "MM/dd/yyyy"));
				}
			}
			//var initialProjectEndDate = new Date($('#initialProjectEndDate').val()).getTime();
			//var finalProjectEndDate = new Date($('#finalProjectEndDate').val()).getTime();
			/*if (isNaN(initialProjectEndDate)) {
				return false;
			} else if (isNaN(finalProjectEndDate)) {
				return false;
			} else if (initialProjectEndDate > finalProjectEndDate) {
				return false;

			}*/
			return true;
		},  "Please enter Project End Date valid value or range."
		);
		
		$("#editKnowledgeManagementForm").validate({
			rules : {
				/*partner : {
					required : true
				},
				acronym : {
					required : true
				},
				costCenterNumber : {
					required : true
				},
				projectTitle : {
					required : true
				},
				donoraward : {
					required : true
				},*/
				//initialProjectStartDate : {
				initialProjectStartDateString : {
					//required : true,
					//date : true,
					startDateValidation : true
				},
				//finalProjectStartDate : {
				finalProjectStartDateString : {
					//required : true,
					//date : true,
					startDateValidation : true
				},
				//initialProjectEndDate : {
				initialProjectEndDateString : {
					//required : true,
					//date : true,
					endDateValidation : true
				},
				//finalProjectEndDate : {
				finalProjectEndDateString : {
					//required : true,
					//date : true,
					endDateValidation : true
				}/*,
				cipeprojecttype : {
					required : true
				},
				cipeprojectstatus : {
					required : true
				},
				region : {
					required : true
				},
				country : {
					required : true
				},
				seniorProgramOfficer : {
					required : true
				},
				programOfficer : {
					required : true
				},
				programAssistant : {
					required : true
				},
				managementFunds : {
					required : true
				}*/
			}
		});
	});


		$('#loginFormSubmit').click(function() {
			$(this).bind("ajaxSend", function(){
                $('#loading').remove();
			$(this).after("<img  id='loading' src='<c:url value='/images/ajax-loader.gif'/>' alt='loading' />");

		 	}).bind("ajaxComplete", function(){

				$('#loading').remove();

		 	});
		
		 // var v1= $('#projectID').val();
		 // var v2= $('#theme').val();
		  var v2= $('.dhx_combo_input').eq(0).val();
		 
		  //var v3= $('#fiscalYear').val();
		  //var v4= $('#fiscalYear2').val();
		 // var v5= $('#region\\.id').val();
		  var v5= $('.dhx_combo_input').eq(1).val();
		 
		 // var v6= $('#country\\.id').val();
		  var v6= $('.dhx_combo_input').eq(2).val();
		 
		 // var v7= $('#cipeprojecttype\\.id').val();
		  var v7= $('.dhx_combo_input').eq(3).val();
		 // alert(v7);  
		 // var v8= $('#organizationtype\\.id').val();
		  var v8= $('.dhx_combo_input').eq(4).val();
		
		  //var v9= $('#keywordId1').val();
		  var v9= $('.dhx_combo_input').eq(5).val();
		     
		 // var v10= $('#keywordId2').val();
		  var v10= $('.dhx_combo_input').eq(6).val();
		 	  
		 // var v11= $('#keywordId3').val();
		 // var v11= $('.dhx_combo_input').eq(7).val();
		//  alert(v7);
		 // var v12= $('.dhx_combo_input').eq(8).val();
		 var v13 = $('#acronym').val(); 
		 // alert(v12);
		  //var v14 = $('#initialProjectStartDate').val();
		  //var v15 = $('#finalProjectStartDate').val();
		  //var v16 = $('#initialProjectEndDate').val();
		  //var v17 = $('#finalProjectEndDate').val();
		  var v14 = $('#initialProjectStartDateString').val();
		  var v15 = $('#finalProjectStartDateString').val();
		  var v16 = $('#initialProjectEndDateString').val();
		  var v17 = $('#finalProjectEndDateString').val();
		  //if(v3 !=''|| v4 !=''){
		  
		      /*if(v3 ==''){
		      alert("Enter start fiscal year range or or leave start fiscal year and end fiscal year blank"); 
		       return false;
		     }
		      if(v4 ==''){
		      alert("Enter end fiscal year range   or leave start fiscal year and end fiscal year blank"); 
		       return false;
		     }else *//*if(v3 !='' && v4 !=''){
		     	//var date_ini = new Date(v3).getTime();
			  ///  var date_end = new Date(v4).getTime();
			    if(v3>v4){
		        	alert("Not valid fiscal year range");
		        	return false;
		        }
		     }*/
		  //}
		 if( v2!=''/* || v3!=''|| v4!=''*/ || v5!='' || v6!='' || v7!='' || v8!='' || v9!='' || v10!='' || v13!='' || v14!='' || v15!='' || v16!='' || v17!=''){		    
		   return true;
		 }
		 alert("Please enter at least one filter criteria");
		 return false;
		});


	$('.edit-cipeprojectsummary-link').click(function() {
		loadDiv('content', 'showCipeprojectSummary.do?id=' + $(this).attr('cipeprojectId'));
	});
	$('.edit-partnergrantview-link').click(function() {
		loadDiv('content', 'showEditPartnergrantView.do?id=' + $(this).attr('cipeprojectId'));
	});
	
	
	/*$("#fiscalYear").bind("keyup",function(){
	 // alert("Enter number.....");
	  if ($(this).val() != "")
     	$(this).val( $(this).val().replace(/[^0-9\.]/g, "") );	  
	});

	$("#fiscalYear2").bind("keyup",function(){
	 // alert("Enter number.....");
	  if ($(this).val() != "")
     	$(this).val( $(this).val().replace(/[^0-9\.]/g, "") );	  
	});
	
	//$("#fiscalYear").numeric();
	//$("#fiscalYear2").numeric();
	$(function(){	
	//	$("#fiscalYear").numeric();
	//	$("#fiscalYear2").numeric();
	});*/
	
	/*$(function() {
		//$("#initialProjectStartDate").datepicker();
		$("#initialProjectStartDateString").datepicker();
	});
	$(function() {
		//$("#finalProjectStartDate").datepicker();
		$("#finalProjectStartDateString").datepicker();
	});
	$(function() {
		//$("#initialProjectEndDate").datepicker();
		$("#initialProjectEndDateString").datepicker();
	});
	$(function() {
		//$("#finalProjectEndDate").datepicker();
		$("#finalProjectEndDateString").datepicker();
	});*/
	
	$('#export-results').click(function() {
		//loadDiv('content', 'showViewKnowledgeManagement.do?id=' + $(this).attr('cipeprojectId'));
	});
	function TableToExcel() {
		var strCopy = document.getElementById("cipeprojectListDiv").innerHTML;
		window.clipboardData.setData("Text", strCopy);
		var objExcel = new ActiveXObject("Excel.Application");
		objExcel.visible = true;

		var objWorkbook = objExcel.Workbooks.Add;
		var objWorksheet = objWorkbook.Worksheets(1);
		objWorksheet.Paste;
	}
	$('.close-button').click(function() {
		//if (confirm('Are you sure you want to close the form?')) {
			window.location = '../secure/showDashboard.do';
		//}
	});
	
	 	 var z = dhtmlXComboFromSelect("theme",274);
		 z.enableFilteringMode(true);
	    
	     var z1 = dhtmlXComboFromSelect("region_id",274);
		 z1.enableFilteringMode(true);
		 z1.attachEvent("onChange",function(){
		 		loadDataViaAjax("loadCountries.do", {
		 			"regionId" : z1.getSelectedValue()
		 		}, parseCountriesJson);
				
		 	});
			function parseCountriesJson(data) {
				z2.clearAll();
				var html = "<option value=''>Select</option>";
				z2.addOption('','Select',274);
				var directorId = "";
				if (data) {
					for (p in data) {
						if(p != 'director') { 
							html = "<option value='" + p + "'>" + data[p] + "</option>";
							z2.addOption(p,data[p],274);

						} else {
							directorId = data[p];
						}
					}
				}
			
			}
	    
	     var z2 = dhtmlXComboFromSelect("country_id",274);
		 z2.enableFilteringMode(true);		
   
	     var z4 = dhtmlXComboFromSelect("organizationtype_id",274);
		 z4.enableFilteringMode(true);	
		 
		 var z5 = dhtmlXComboFromSelect("keywordId1",274);
		 z5.enableFilteringMode(true);	
		
		 var z6 = dhtmlXComboFromSelect("keywordId2",274);
		 z6.enableFilteringMode(true);	
		
		 var z7 = dhtmlXComboFromSelect("keywordId3",274);
		 z7.enableFilteringMode(true);
// 		 z7.setOptionHeight(50);
		 
// 		 var z8 = dhtmlXComboFromSelect("condition1",274);
// 		 z8.enableFilteringMode(true);
		 
// 		 var z9 = dhtmlXComboFromSelect("condition2",274);
// 		 z9.enableFilteringMode(true);
		 	 
		 
		
    //  $('#check-all').click(function() {
    // alert(this.checked);       
    //     var checkBox = $('#paymentRqst input:checkbox');
    //       for(var i = 0; i < checkBox.length; i++) {
    //   	   checkBox[i].checked = this.checked;
    //     }
    //	});	
</script>
<div id="findKnowledgeManagementDiv">
	<form:form name="editKnowledgeManagementForm" id="editKnowledgeManagementForm" action="findKnowledgeManagement.do" method="GET" modelAttribute="cipeproject">
		<form:hidden path="id" />

		<div class="main_form">
			<div class="form_head">
				<div class="floatL" style="padding-top:5px;">
					<!-- a class="blue_btn" href="#">Instructions</a -->
				</div>	    	
	    		<a href="#" class="close-button gray_btn floatR">Close Form</a><br class="clear" />
	    	</div>
	        <div class="form_cont">
				<table>
					<tr class="row">
						<td class="input-field" colspan="5"><%@ include file="/common/messages.jsp"%></td>
					</tr>
					<tr class="row">
						<td class="label" nowrap><spring:message code="editKnowledgeManagement.label.theme" /></td>
						<td class="input-field">			
			     <form:select path="themColumn" cssClass="input-full-width text_white" id="theme">							
              	 <form:option value="" label=""/>
								<form:option value="themeaccesstoinfo:25" label="Access to Information" />
              	<form:option value="themebusassocdev:25" label="Business Association Development" />
							   <form:option value="themecorruption:25" label="Corruption" />
								<form:option value="themecorporategovernance:25" label="Corporate Governance" />
								<form:option value="themedemocraticgovernance:25" label="Democratic Governance" />
                				<form:option value="themeinformalsectorproperty:25" label="Informal Sector/Property" />
              					<form:option value="themelegalregreform:25" label="Legal/Regulatory Reform" />
                				<form:option value="themewomenyouth:25" label="Women/Youth" />
								<%--<form:options items="${themeList}" /> --%>
							</form:select>
							<form:errors path="" cssClass="error" />
			
						</td>
						<td width="50">&nbsp;</td>
						<td class="label"><spring:message code="editKnowledgeManagement.label.organizationtype" /></td>
						<td class="input-field"><form:select path="organizationtype.id" cssClass="input-full-width text_white" id="organizationtype_id">
								<form:option value="" label="" />
								<form:options items="${organizationtypeList}" itemValue="id" itemLabel="displayName" />
							</form:select>
							<form:errors path="organizationtype.id" cssClass="error" />
						</td>
					</tr>
					<!--<tr class="row">
						<td class="label"><spring:message code="editKnowledgeManagement.label.fiscalYearBetween" /></td>
						<td class="input-field">
							<form:input path="fiscalYear" cssClass="input-full-width text_white" type=""/>
							<form:errors path="fiscalYear" cssClass="error" />
						</td>
						<td width="50">&nbsp;</td>
						<td class="label"><spring:message code="label.and" /></td>
						<td class="input-field">
							<form:input path="fiscalYear2" cssClass="input-full-width text_white" /> 
							<form:errors path="fiscalYear2" cssClass="error" />
						</td>
					</tr>-->
					<tr>
						<td class="label"><spring:message code="editKnowledgeManagement.label.startDateBetween" /></td>
						<td class="input-field">
							<form:input path="initialProjectStartDateString" cssClass="text_white"/>
							<form:errors path="initialProjectStartDateString" cssClass="error" />
							<%-- <form:input path="initialProjectStartDate" cssClass="text_white"/> --%>
							<%-- <form:errors path="initialProjectStartDate" cssClass="error" /> --%>
						</td>
						<td width="50">&nbsp;</td>
						<td class="label"><spring:message code="label.and" /></td>
						<td class="input-field">
							<form:input path="finalProjectStartDateString" cssClass="text_white"/>
							<form:errors path="finalProjectStartDateString" cssClass="error" />
							<%-- <form:input path="finalProjectStartDate" cssClass="text_white"/> --%>
							<%-- <form:errors path="finalProjectStartDate" cssClass="error" /> --%>
						</td>
					</tr>
					<tr>
						<td class="label"><spring:message code="editKnowledgeManagement.label.endDateBetween" /></td>
						<td class="input-field">
							<form:input path="initialProjectEndDateString" cssClass="input-full-width text_white" />
							<form:errors path="initialProjectEndDateString" cssClass="error" />
							<%-- <form:input path="initialProjectEndDate" cssClass="input-full-width text_white" /> --%>
							<%-- <form:errors path="initialProjectEndDate" cssClass="error" /> --%>
						</td>
						<td width="50">&nbsp;</td>
						<td class="label"><spring:message code="label.and" /></td>
						<td class="input-field">
							<form:input path="finalProjectEndDateString" cssClass="input-full-width text_white" />
							<form:errors path="finalProjectEndDateString" cssClass="error" />
							<%-- <form:input path="finalProjectEndDate" cssClass="input-full-width text_white" /> --%>
							<%-- <form:errors path="finalProjectEndDate" cssClass="error" /> --%>
						</td>
					</tr>
					
					<tr class="row">				  
						<td class="label"><spring:message code="viewCipeprojectPaymentRequestLineItems.table.heading.projectAcronym" /></td>
						<td class="input-field">
							<form:input path="acronym" cssClass="input-full-width text_white" />
							<form:errors path="country.id" cssClass="error" />
						</td>
						<td width="50">&nbsp;</td>
						<td class="label"></td>
						<td class="input-field">
						</td>
					
										
					</tr>
						
					<tr>
						<td class="label"><spring:message code="editKnowledgeManagement.label.region" /></td>
						<td class="input-field">
							<form:select path="region.id" cssClass="input-full-width text_white" id="region_id">
								<form:option value="" label="" />
								<form:options items="${regionList}" itemValue="id" itemLabel="displayName" />
							</form:select>
							<form:errors path="region.id" cssClass="error" />
						</td>
						<td width="50">&nbsp;</td>
							<td class="label"><spring:message code="editKnowledgeManagement.label.country" /></td>
						<td class="input-field">
							<form:select path="country.id" cssClass="input-full-width text_white" id="country_id">
								<form:option value="" label="" />
								<form:options items="${countryList}" itemValue="id" itemLabel="displayName" />
							</form:select>
							<form:errors path="country.id" cssClass="error" />
						</td>	
						
			
					</tr>
						<tr>
		                <td align="right">&nbsp;</td>
		                <td>&nbsp;</td>
		                <td width="50">&nbsp;</td>
		                <td align="right">&nbsp;</td>
		              	<td></td>
		           	</tr>

					<tr class="row">
						<td class="label"><spring:message code="editKnowledgeManagement.label.keyword1" /></td>
						<td class="input-field">
							<form:select path="keywordId1" cssClass="input-full-width text_white" id="keywordId1">
								<form:option value="" label="" />
								<form:options items="${keywordList}" itemValue="id" itemLabel="displayName" />
							</form:select>
						</td>
						<td width="50">&nbsp;</td>
						<td class="label"><spring:message code="editKnowledgeManagement.label.condition" /></td>
						<td class="input-field">
							<form:select path="condition1" cssClass="input-full-width text_white">
								<form:option value="OR" label="Or" />
								<form:option value="AND" label="And" />
							</form:select>
						</td>
					</tr>
					<tr class="row">
						<td class="label"><spring:message code="editKnowledgeManagement.label.keyword2" /></td>
						<td class="input-field">
							<form:select path="keywordId2" cssClass="input-full-width text_white" id="keywordId2">
								<form:option value="" label="" />
								<form:options items="${keywordList}" itemValue="id" itemLabel="displayName" />
							</form:select>
						</td>
						<td width="50">&nbsp;</td>
						<td class="label"><spring:message code="editKnowledgeManagement.label.condition" /></td>
						<td class="input-field">
							<form:select path="condition2" cssClass="input-full-width text_white">
								<form:option value="OR" label="Or" />
								<form:option value="AND" label="And" />
							</form:select>
						</td>
					</tr>
					<tr class="row">
						<td class="label"><spring:message code="editKnowledgeManagement.label.keyword3" /></td>
						<td class="input-field">
							<form:select path="keywordId3" cssClass="input-full-width text_white" if="keywordId3">
								<form:option value="" label=""/>
								<form:options items="${keywordList}" itemValue="id" itemLabel="displayName" />
							</form:select>
						</td>
						<td width="50">&nbsp;</td>
						<td class="label"><!--spring:message code="editKnowledgeManagement.label.condition" /--></td>
						<td class="input-field"><!--
							<form:select path="condition3" cssClass="input-full-width text_white">
								<form:option value="OR" label="Or" />
								<form:option value="AND" label="And" />
							</form:select> -->
						</td>
					</tr>
					<tr>
		                <td align="right">&nbsp;</td>
		                <td>&nbsp;</td>
		                <td width="50">&nbsp;</td>
		                <td align="right">&nbsp;</td>
		              	<td></td>
		           	</tr>
		           				<tr>
		                <td align="right">&nbsp;</td>
		                <td>&nbsp;</td>
		                <td width="50">&nbsp;</td>
		                <td align="right">&nbsp;</td>
		              	<td></td>
		           	</tr>
		           				<tr>
		                <td align="right">&nbsp;</td>
		                <td>&nbsp;</td>
		                <td width="50">&nbsp;</td>
		                <td align="right">&nbsp;</td>
		              	<td></td>
		           	</tr>
		           				<tr>
		                <td align="right">&nbsp;</td>
		                <td>&nbsp;</td>
		                <td width="50">&nbsp;</td>
		                <td align="right">&nbsp;</td>
		              	<td></td>
		           	</tr>
		           	<tr>
		                <td align="center" colspan="5">
		                	<sj:submit id="loginFormSubmit" name="initiateSearch" cssClass="blue_btn" target="content" key="button.search" validate="true" tabindex="-1"/>
		                	<input type="button" class="blue_btn" id="reset" value="<spring:message code='button.resetSearch' />" tabindex="-1"/>
		                </td>
		          	</tr>
					<tr>
		                <td align="right">&nbsp;</td>
		                <td>&nbsp;</td>
		                <td width="50">&nbsp;</td>
		                <td align="right">&nbsp;</td>
		                <td></td>
		          	</tr>		          	
		          	
				</table>
                
				<div id="cipeprojectListDiv" class="hastable" style="overflow: auto">
				<c:if test="${!empty initiateSearch }">
                  <jsp:include page="/WEB-INF/jsps/searchResultKnowledgeManagement.jsp" />
                  </c:if>
				</div>
                
			</div>
		</div>
	</form:form>
</div>
